ON ein GOSUB radier,fenstero,fensteru,fensterl,fensterr,kreuz,vierb,tisch,stuhlk,kasten,stuhl,balkeno,balkenu,links,rechts,eckelu,eckero,eckeol,eckeur,tischgr
GET(0,0)-(19,19),bau(110,ein-1)
CLS
NEXT
GOSUB Rahmen : GOSUB bauen
retur:
MENU ON
WHILE MOUSE(0) = 0
x = MOUSE(1): y = MOUSE(2)
IF y<180 THEN
PUT(x-10,y-5),bau(110,w)
PUT(x-10,y-5),bau(110,w)
END IF
WEND
IF x> = 300 THEN retur
IF y> = 180 THEN GOTO taste
kleber:
x = FIX (x/20): y = FIX(y/20)
x = x*20: y = y*20
IF w = 19 AND mx<>-1 THEN PUT(mx,my),bau(110,19)
IF x = mx AND y = my THEN mx = -1
IF w<19 THEN PUT(x,y),bau(110,w),PSET :ELSE PUT(x,y),bau(110,19)